import request from '@/utils/request'

// 汇总前的验证
export function beforeSummaryValidate() {
  return request({
    url: '/supervisor/summary/beforeSummaryValidate',
    method: 'get'
  })
}

// 汇总初始化
export function init() {
  return request({
    url: '/supervisor/summary/init',
    method: 'get'
  })
}

// 数据汇总
export function summary(data) {
  return request({
    url: '/supervisor/summary/summary',
    method: 'post',
    data: data
  })
}

// 查询汇总用户集合--报表功能使用
export function dropDownReportUserList(data) {
  return request({
    url: '/supervisor/summary/dropDownReportUserList',
    method: 'post',
    params: data
  })
}

// 查询该机构、工期、用户汇总记录是否批复
export function getSummaryRecordIsApprove(data) {
  return request({
    url: '/supervisor/summary/getSummaryRecordIsApprove',
    method: 'post',
    params: data
  })
}
